package com.symbio.ishenapi.doctor.controller;

import com.symbio.ishenapi.common.controller.BaseController;
import com.symbio.ishenapi.doctor.model.TmDoctorDictionary;
import com.symbio.ishenapi.doctor.model.TmDoctorServerLog;
import io.jboot.web.controller.annotation.RequestMapping;

import java.util.Map;

@RequestMapping("/TmDoctorServerLogController")
public class TmDoctorServerLogController extends BaseController {
    /**
     * @Author jianghy
     * @Description 根据医生id和服务类型code查看业务定价记录
     * @date
     * @return void
     */
    public void queryServerLog(){
        String doctorId = getPara("doctorId");
        String serverCode = getPara("serverCode");
        if((doctorId!=null||!"".equals(doctorId))&&(serverCode!=null||!"".equals(serverCode))){
                Map map = TmDoctorServerLog.dao.queryFwLog(getQueryModel(),doctorId,serverCode);
                renderPageJsonRet(map.get("count"),map.get("data"));
        }else{
            renderJsonError(50002);
        }

    }
}
